import type { OrderTestPrintReq, OrderTestPrintRes } from './types';
/**
 * 打印相关接口
 */
import { post } from '@/utils/request';

/** 测试打印 */
export const orderTestPrint = (data?: OrderTestPrintReq) =>
  post<OrderTestPrintRes>('/syapi/dayin/orderTestPrint', {
    data,
    header: {
      'Content-Type': 'application/json',
    },
  });

/** 订单打印 */
export const orderListPrint = (data: any) =>
  post<any>('/syapi/dayin/orderListPrint', {
    data,
    header: {
      'Content-Type': 'application/json',
    },
  });
